/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package battle.ship.model;

/**
 *
 * @author Carlos
 */
public enum SquareType {
    WATTER ("Água"),
    BOAT ("Barco"),
    OUT ("Fora");
    
    private final String name;
    
    private SquareType(String s) {
        this.name = s;
    }
    
    public boolean equalsName(String otherName){
        return (otherName == null) ? false : this.name.equals(otherName);
    }

    @Override
    public String toString(){
       return name;
    }
}
